package cn.util;

public class StringHelper {
	public static String toTrim(String str) {
		if (str == null)
			return "";
		if (str.trim().equalsIgnoreCase("null")) {
			return "";
		}
		return str.trim();
	}

	public static boolean isEmpty(String str) {
		boolean ret = false;
		if (toTrim(str).equals(""))
			ret = true;
		return ret;
	}
}
